import './globals.css';
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import { ThemeProvider } from "@/components/theme-provider";

const inter = Inter({ subsets: ['latin'] });

export const metadata: Metadata = {
  title: '雷哥 - AI时代的慢思考者',
  description: 'AI 奇点已经来临. 欢迎来到我的个人主页, 这里专注于 AI 技术相关内容, 如 RAG, LLM, Prompt 等.',
  keywords: ['AI', 'RAG', 'LLM', 'Prompt Engineering', '人工智能', '雷哥'],
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="zh-CN" suppressHydrationWarning>
      <body className={inter.className}>
        <ThemeProvider
          attribute="class"
          defaultTheme="dark"
          enableSystem
          disableTransitionOnChange
        >
          {children}
        </ThemeProvider>
      </body>
    </html>
  );
}
